package com.huluobo.a2206parkdemo.shop

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.huluobo.a2206parkdemo.R
import com.huluobo.a2206parkdemo.databinding.ActivityShopBinding
import com.huluobo.base.mvvm.BaseActivity
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class ShopActivity : BaseActivity<ActivityShopBinding, ShopViewModel>() {
    override fun initData() {
//        vm.getAllGoods(0, 1, 10)
//        vm.getAllGoodsSuccess.observe(this) {
//            Log.i("TagA", "shop:${it.size}")
//        }
        vm.getGit(1, 100)
        vm.getGitSuccess.observe(this) {
            Log.i("TagA", "gits:${it.size}")
        }
    }

    override fun initView() {
    }
}